/*
 * @Descripttion:
 * @Author: zhengminjie
 * @Date: 2021-05-16 11:27:27
 * @LastEditors: zhengminjie
 * @LastEditTime: 2021-05-16 11:27:28
 */
import request from '@/utils/request'


//搜索群组除自己的群
export function countMessages(messageType){
    return request({
      url:'/distribution/messagesManager/count?messageType='+messageType,
      method: 'get',
    })
  } 

//管理员收到的入群消息
export function joinMessages(messageType){
  return request({
    url:'/distribution/messagesManager/join?messageType='+messageType,
    method: 'get',
  })
} 

//添加入群消息和入群
export function addMessages(add){
  return request({
    url:'/distribution/messagesManager/add',
    method: 'post',
    data:add
  })
} 

//拒绝入群消息
export function refuseMessages(refuse){
  return request({
    url:'/distribution/messagesManager/refuse',
    method: 'post',
    data:refuse
  })
} 

// 通过消息类型得到具体内容
export function getMessages(messageType){
  return request({
    url:'/distribution/messagesManager/get?messageType='+messageType,
    method: 'get',
  })
} 

// 得到表格文档内容
export function getdoc(){
  return request({
    url:'/distribution/messagesManager/getdoc',
    method: 'get',
  })
} 

// 同意接收表格文档
export function agree(){
  return request({
    url:'/distribution/messagesManager/agree',
    method: 'get',
  })
} 

// 拒绝接收表格文档
export function disagree(){
  return request({
    url:'/distribution/messagesManager/disagree',
    method: 'get',
  })
} 